/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.mto.quangcao.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link QuangCao_banner}.
 * </p>
 *
 * @author    thanh.tran
 * @see       QuangCao_banner
 * @generated
 */
public class QuangCao_bannerWrapper implements QuangCao_banner,
	ModelWrapper<QuangCao_banner> {
	public QuangCao_bannerWrapper(QuangCao_banner quangCao_banner) {
		_quangCao_banner = quangCao_banner;
	}

	public Class<?> getModelClass() {
		return QuangCao_banner.class;
	}

	public String getModelClassName() {
		return QuangCao_banner.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("quangCaoId", getQuangCaoId());
		attributes.put("content", getContent());
		attributes.put("countView", getCountView());
		attributes.put("countClick", getCountClick());
		attributes.put("userId", getUserId());
		attributes.put("startDate", getStartDate());
		attributes.put("endDate", getEndDate());
		attributes.put("title", getTitle());
		attributes.put("description", getDescription());
		attributes.put("fileEntryId", getFileEntryId());
		attributes.put("status", getStatus());
		attributes.put("type", getType());
		attributes.put("link", getLink());
		attributes.put("createDate", getCreateDate());
		attributes.put("modifyDate", getModifyDate());
		attributes.put("userModifyId", getUserModifyId());
		attributes.put("userModifyIp", getUserModifyIp());
		attributes.put("limitClick", getLimitClick());
		attributes.put("widthBanner", getWidthBanner());
		attributes.put("heightBanner", getHeightBanner());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long quangCaoId = (Long)attributes.get("quangCaoId");

		if (quangCaoId != null) {
			setQuangCaoId(quangCaoId);
		}

		String content = (String)attributes.get("content");

		if (content != null) {
			setContent(content);
		}

		Long countView = (Long)attributes.get("countView");

		if (countView != null) {
			setCountView(countView);
		}

		Long countClick = (Long)attributes.get("countClick");

		if (countClick != null) {
			setCountClick(countClick);
		}

		Long userId = (Long)attributes.get("userId");

		if (userId != null) {
			setUserId(userId);
		}

		Date startDate = (Date)attributes.get("startDate");

		if (startDate != null) {
			setStartDate(startDate);
		}

		Date endDate = (Date)attributes.get("endDate");

		if (endDate != null) {
			setEndDate(endDate);
		}

		String title = (String)attributes.get("title");

		if (title != null) {
			setTitle(title);
		}

		String description = (String)attributes.get("description");

		if (description != null) {
			setDescription(description);
		}

		Long fileEntryId = (Long)attributes.get("fileEntryId");

		if (fileEntryId != null) {
			setFileEntryId(fileEntryId);
		}

		String status = (String)attributes.get("status");

		if (status != null) {
			setStatus(status);
		}

		String type = (String)attributes.get("type");

		if (type != null) {
			setType(type);
		}

		String link = (String)attributes.get("link");

		if (link != null) {
			setLink(link);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Date modifyDate = (Date)attributes.get("modifyDate");

		if (modifyDate != null) {
			setModifyDate(modifyDate);
		}

		Long userModifyId = (Long)attributes.get("userModifyId");

		if (userModifyId != null) {
			setUserModifyId(userModifyId);
		}

		String userModifyIp = (String)attributes.get("userModifyIp");

		if (userModifyIp != null) {
			setUserModifyIp(userModifyIp);
		}

		Long limitClick = (Long)attributes.get("limitClick");

		if (limitClick != null) {
			setLimitClick(limitClick);
		}

		Long widthBanner = (Long)attributes.get("widthBanner");

		if (widthBanner != null) {
			setWidthBanner(widthBanner);
		}

		Long heightBanner = (Long)attributes.get("heightBanner");

		if (heightBanner != null) {
			setHeightBanner(heightBanner);
		}
	}

	/**
	* Returns the primary key of this quang cao_banner.
	*
	* @return the primary key of this quang cao_banner
	*/
	public long getPrimaryKey() {
		return _quangCao_banner.getPrimaryKey();
	}

	/**
	* Sets the primary key of this quang cao_banner.
	*
	* @param primaryKey the primary key of this quang cao_banner
	*/
	public void setPrimaryKey(long primaryKey) {
		_quangCao_banner.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the quang cao ID of this quang cao_banner.
	*
	* @return the quang cao ID of this quang cao_banner
	*/
	public long getQuangCaoId() {
		return _quangCao_banner.getQuangCaoId();
	}

	/**
	* Sets the quang cao ID of this quang cao_banner.
	*
	* @param quangCaoId the quang cao ID of this quang cao_banner
	*/
	public void setQuangCaoId(long quangCaoId) {
		_quangCao_banner.setQuangCaoId(quangCaoId);
	}

	/**
	* Returns the content of this quang cao_banner.
	*
	* @return the content of this quang cao_banner
	*/
	public java.lang.String getContent() {
		return _quangCao_banner.getContent();
	}

	/**
	* Sets the content of this quang cao_banner.
	*
	* @param content the content of this quang cao_banner
	*/
	public void setContent(java.lang.String content) {
		_quangCao_banner.setContent(content);
	}

	/**
	* Returns the count view of this quang cao_banner.
	*
	* @return the count view of this quang cao_banner
	*/
	public long getCountView() {
		return _quangCao_banner.getCountView();
	}

	/**
	* Sets the count view of this quang cao_banner.
	*
	* @param countView the count view of this quang cao_banner
	*/
	public void setCountView(long countView) {
		_quangCao_banner.setCountView(countView);
	}

	/**
	* Returns the count click of this quang cao_banner.
	*
	* @return the count click of this quang cao_banner
	*/
	public long getCountClick() {
		return _quangCao_banner.getCountClick();
	}

	/**
	* Sets the count click of this quang cao_banner.
	*
	* @param countClick the count click of this quang cao_banner
	*/
	public void setCountClick(long countClick) {
		_quangCao_banner.setCountClick(countClick);
	}

	/**
	* Returns the user ID of this quang cao_banner.
	*
	* @return the user ID of this quang cao_banner
	*/
	public long getUserId() {
		return _quangCao_banner.getUserId();
	}

	/**
	* Sets the user ID of this quang cao_banner.
	*
	* @param userId the user ID of this quang cao_banner
	*/
	public void setUserId(long userId) {
		_quangCao_banner.setUserId(userId);
	}

	/**
	* Returns the user uuid of this quang cao_banner.
	*
	* @return the user uuid of this quang cao_banner
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _quangCao_banner.getUserUuid();
	}

	/**
	* Sets the user uuid of this quang cao_banner.
	*
	* @param userUuid the user uuid of this quang cao_banner
	*/
	public void setUserUuid(java.lang.String userUuid) {
		_quangCao_banner.setUserUuid(userUuid);
	}

	/**
	* Returns the start date of this quang cao_banner.
	*
	* @return the start date of this quang cao_banner
	*/
	public java.util.Date getStartDate() {
		return _quangCao_banner.getStartDate();
	}

	/**
	* Sets the start date of this quang cao_banner.
	*
	* @param startDate the start date of this quang cao_banner
	*/
	public void setStartDate(java.util.Date startDate) {
		_quangCao_banner.setStartDate(startDate);
	}

	/**
	* Returns the end date of this quang cao_banner.
	*
	* @return the end date of this quang cao_banner
	*/
	public java.util.Date getEndDate() {
		return _quangCao_banner.getEndDate();
	}

	/**
	* Sets the end date of this quang cao_banner.
	*
	* @param endDate the end date of this quang cao_banner
	*/
	public void setEndDate(java.util.Date endDate) {
		_quangCao_banner.setEndDate(endDate);
	}

	/**
	* Returns the title of this quang cao_banner.
	*
	* @return the title of this quang cao_banner
	*/
	public java.lang.String getTitle() {
		return _quangCao_banner.getTitle();
	}

	/**
	* Sets the title of this quang cao_banner.
	*
	* @param title the title of this quang cao_banner
	*/
	public void setTitle(java.lang.String title) {
		_quangCao_banner.setTitle(title);
	}

	/**
	* Returns the description of this quang cao_banner.
	*
	* @return the description of this quang cao_banner
	*/
	public java.lang.String getDescription() {
		return _quangCao_banner.getDescription();
	}

	/**
	* Sets the description of this quang cao_banner.
	*
	* @param description the description of this quang cao_banner
	*/
	public void setDescription(java.lang.String description) {
		_quangCao_banner.setDescription(description);
	}

	/**
	* Returns the file entry ID of this quang cao_banner.
	*
	* @return the file entry ID of this quang cao_banner
	*/
	public long getFileEntryId() {
		return _quangCao_banner.getFileEntryId();
	}

	/**
	* Sets the file entry ID of this quang cao_banner.
	*
	* @param fileEntryId the file entry ID of this quang cao_banner
	*/
	public void setFileEntryId(long fileEntryId) {
		_quangCao_banner.setFileEntryId(fileEntryId);
	}

	/**
	* Returns the status of this quang cao_banner.
	*
	* @return the status of this quang cao_banner
	*/
	public java.lang.String getStatus() {
		return _quangCao_banner.getStatus();
	}

	/**
	* Sets the status of this quang cao_banner.
	*
	* @param status the status of this quang cao_banner
	*/
	public void setStatus(java.lang.String status) {
		_quangCao_banner.setStatus(status);
	}

	/**
	* Returns the type of this quang cao_banner.
	*
	* @return the type of this quang cao_banner
	*/
	public java.lang.String getType() {
		return _quangCao_banner.getType();
	}

	/**
	* Sets the type of this quang cao_banner.
	*
	* @param type the type of this quang cao_banner
	*/
	public void setType(java.lang.String type) {
		_quangCao_banner.setType(type);
	}

	/**
	* Returns the link of this quang cao_banner.
	*
	* @return the link of this quang cao_banner
	*/
	public java.lang.String getLink() {
		return _quangCao_banner.getLink();
	}

	/**
	* Sets the link of this quang cao_banner.
	*
	* @param link the link of this quang cao_banner
	*/
	public void setLink(java.lang.String link) {
		_quangCao_banner.setLink(link);
	}

	/**
	* Returns the create date of this quang cao_banner.
	*
	* @return the create date of this quang cao_banner
	*/
	public java.util.Date getCreateDate() {
		return _quangCao_banner.getCreateDate();
	}

	/**
	* Sets the create date of this quang cao_banner.
	*
	* @param createDate the create date of this quang cao_banner
	*/
	public void setCreateDate(java.util.Date createDate) {
		_quangCao_banner.setCreateDate(createDate);
	}

	/**
	* Returns the modify date of this quang cao_banner.
	*
	* @return the modify date of this quang cao_banner
	*/
	public java.util.Date getModifyDate() {
		return _quangCao_banner.getModifyDate();
	}

	/**
	* Sets the modify date of this quang cao_banner.
	*
	* @param modifyDate the modify date of this quang cao_banner
	*/
	public void setModifyDate(java.util.Date modifyDate) {
		_quangCao_banner.setModifyDate(modifyDate);
	}

	/**
	* Returns the user modify ID of this quang cao_banner.
	*
	* @return the user modify ID of this quang cao_banner
	*/
	public long getUserModifyId() {
		return _quangCao_banner.getUserModifyId();
	}

	/**
	* Sets the user modify ID of this quang cao_banner.
	*
	* @param userModifyId the user modify ID of this quang cao_banner
	*/
	public void setUserModifyId(long userModifyId) {
		_quangCao_banner.setUserModifyId(userModifyId);
	}

	/**
	* Returns the user modify ip of this quang cao_banner.
	*
	* @return the user modify ip of this quang cao_banner
	*/
	public java.lang.String getUserModifyIp() {
		return _quangCao_banner.getUserModifyIp();
	}

	/**
	* Sets the user modify ip of this quang cao_banner.
	*
	* @param userModifyIp the user modify ip of this quang cao_banner
	*/
	public void setUserModifyIp(java.lang.String userModifyIp) {
		_quangCao_banner.setUserModifyIp(userModifyIp);
	}

	/**
	* Returns the limit click of this quang cao_banner.
	*
	* @return the limit click of this quang cao_banner
	*/
	public long getLimitClick() {
		return _quangCao_banner.getLimitClick();
	}

	/**
	* Sets the limit click of this quang cao_banner.
	*
	* @param limitClick the limit click of this quang cao_banner
	*/
	public void setLimitClick(long limitClick) {
		_quangCao_banner.setLimitClick(limitClick);
	}

	/**
	* Returns the width banner of this quang cao_banner.
	*
	* @return the width banner of this quang cao_banner
	*/
	public long getWidthBanner() {
		return _quangCao_banner.getWidthBanner();
	}

	/**
	* Sets the width banner of this quang cao_banner.
	*
	* @param widthBanner the width banner of this quang cao_banner
	*/
	public void setWidthBanner(long widthBanner) {
		_quangCao_banner.setWidthBanner(widthBanner);
	}

	/**
	* Returns the height banner of this quang cao_banner.
	*
	* @return the height banner of this quang cao_banner
	*/
	public long getHeightBanner() {
		return _quangCao_banner.getHeightBanner();
	}

	/**
	* Sets the height banner of this quang cao_banner.
	*
	* @param heightBanner the height banner of this quang cao_banner
	*/
	public void setHeightBanner(long heightBanner) {
		_quangCao_banner.setHeightBanner(heightBanner);
	}

	public boolean isNew() {
		return _quangCao_banner.isNew();
	}

	public void setNew(boolean n) {
		_quangCao_banner.setNew(n);
	}

	public boolean isCachedModel() {
		return _quangCao_banner.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_quangCao_banner.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _quangCao_banner.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _quangCao_banner.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_quangCao_banner.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _quangCao_banner.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_quangCao_banner.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new QuangCao_bannerWrapper((QuangCao_banner)_quangCao_banner.clone());
	}

	public int compareTo(com.mto.quangcao.model.QuangCao_banner quangCao_banner) {
		return _quangCao_banner.compareTo(quangCao_banner);
	}

	@Override
	public int hashCode() {
		return _quangCao_banner.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.mto.quangcao.model.QuangCao_banner> toCacheModel() {
		return _quangCao_banner.toCacheModel();
	}

	public com.mto.quangcao.model.QuangCao_banner toEscapedModel() {
		return new QuangCao_bannerWrapper(_quangCao_banner.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _quangCao_banner.toString();
	}

	public java.lang.String toXmlString() {
		return _quangCao_banner.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_quangCao_banner.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public QuangCao_banner getWrappedQuangCao_banner() {
		return _quangCao_banner;
	}

	public QuangCao_banner getWrappedModel() {
		return _quangCao_banner;
	}

	public void resetOriginalValues() {
		_quangCao_banner.resetOriginalValues();
	}

	private QuangCao_banner _quangCao_banner;
}